home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pbaseiv.zip / P4WPR005.TIP < prev    next >
Text File  |  1991-12-16  |  2KB  |  46 lines

  1. I'm not the world's greatest typist, and the <Shift> key
  2. gives me a lot of trouble. Deleting a lowercase character
  3. and replacing it with an uppercase one, or vice versa, may
  4. seem like a simple process, but if you do it on a regular
  5. basis, cutting the two-keystroke job in half is worthwhile.
  6. For that reason, I created two WordPerfect macros, ALTU.WPM
  7. [see below] and ALTL.WPM, that give me one-keystroke case
  8. changes.
  9.  
  10. I also wanted these macros to be able to change the case of
  11. an entire block of text with the same keystroke. I included
  12. a test for block mode [the {IF}{STATE} in the listing
  13. below]. When I press <Alt>-U in normal editing mode,
  14. ALTU.WPM capitalizes the letter at the cursor, but if I mark
  15. a block of text and then press <Alt>-U, the macro
  16. capitalizes every letter in the block. ALTL.WPM does the
  17. same thing but forces letters to lowercase.
  18.  
  19. Stephanie Wong
  20. Salem, Oregon
  21.  
  22. Editor's note: The two macro files ALTU.WPM and ALTL.WPM are
  23. included on your PowerBase *.* Volume IV diskette in the
  24. P4WPM directory.
  25.  
  26.  
  27. With one keystroke, this WordPerfect macro capitalizes a
  28. character or a whole block of text. Changing the final "U"
  29. to an "L" converts the character or block to lowercase.
  30.  
  31. {DISPLAY OFF}
  32. {IF}{STATE}&128~  {;}If·a·block·is·marked~
  33.    {GO}end~       {;}skip·the·next·two·lines~
  34. {END IF}
  35. {Block}{Right}    {;}Block·single·character~
  36.  
  37. {LABEL}end~
  38. {Switch}U         {;}Convert·block·to·uppercase~
  39.  
  40.  
  41. Title: Making a Case for WordPerfect
  42. Category: DOS
  43. Issue date: Jun 1991
  44. Editor: Karl Koessel
  45. Supplementary files: P4WPM\ALTU.WPM, P4WPM\ALTL.WPM
  46.